projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d3aa92
)
image: Indentation fix
author
Timm Bäder
<mail@baedert.org>
Sun, 30 Dec 2018 19:25:21 +0000
(20:25 +0100)
committer
Timm Bäder
<mail@baedert.org>
Mon, 31 Dec 2018 11:44:02 +0000
(12:44 +0100)
gtk/gtkimage.c
patch
|
blob
|
history
diff --git
a/gtk/gtkimage.c
b/gtk/gtkimage.c
index 8acceb12e9fc95bf4666f909c903ac511ab1b3e4..1546256341fcaab869df04f3d53fd148568d5140 100644
(file)
--- a/
gtk/gtkimage.c
+++ b/
gtk/gtkimage.c
@@
-1100,16
+1100,16
@@
gtk_image_snapshot (GtkWidget *widget,
{
double image_ratio = (double) width / height;
- if (ratio > image_ratio)
- {
- w = width;
- h = width / ratio;
- }
- else
- {
- w = height * ratio;
- h = height;
- }
+
if (ratio > image_ratio)
+
{
+
w = width;
+
h = width / ratio;
+
}
+
else
+
{
+
w = height * ratio;
+
h = height;
+
}
x = (width - ceil (w)) / 2;